package com.dennis.nio;

import io.netty.channel.Channel;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Dennis Li
 * @date 2020/8/19 10:57
 */
public class ChannelMap {

    public static Map<String, Channel> getInstance() {
        return Inner.map;
    }

    private static class Inner {
        private static Map<String, Channel> map = new ConcurrentHashMap<>();
    }

}
